import SMERouter from "sme-router";
import loginRoute from "$r/login";
import advRoute from "$r/adv";
import adminListRoute from "$r/adminList";
import advListRoute from "$r/advList";
import axios from 'axios'



//实例化路由器对象,并且传入一级路由的作用区域(是一个id)
//默认是hash路由模式
const router = new SMERouter("app", "html5")
window.router = router;

//配置路由
router.route('/login',loginRoute)

//后台管理
router.route('/adv', advRoute)
//二级路由配置
router.route("/adv/adminList", adminListRoute)

router.route("/adv/advList", advListRoute)


